package cn.antsing;
/**
 * 被访问者
 */
public class Item implements IVisitable {
    private String name;
    public void accept(IVisitor visitor) {
        visitor.visit(this);
    }

    public Item(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
